﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Models
{/// <summary>
 /// 菜单管理
 /// </summary>
    [SugarTable("sys_menu")]
    public class sys_menu  // 类名也改为小写开头
    {
        /// <summary>
        /// 备注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "name")]
        public string name { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:创建时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "createtime")]
        public DateTime createtime { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:修改时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "updatetime")]
        public DateTime updatetime { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:状态 0禁用 1启用
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "status")]
        public int status { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:父级
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "pid")]
        public int? pid { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:跳转地址
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "surl")]
        public string surl { get; set; }  // 属性名首字母小写

        /// <summary>
        /// 备注:排序
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "sorder")]
        public int sorder { get; set; }  // 属性名首字母小写
    }
}